#ifndef SERVER_H
#define SERVER_H

#include "CrackRequest.h"
#include "headers_cpp.h"

struct Worker
{
	uint32_t connid;
	unsigned int block_id;
	bool connected;

	Worker(uint32_t conn_id) : connid(conn_id), block_id(0), connected(true) {} 
};

//Data:
vector<CrackRequest> crs;
vector<Worker> workers;
unsigned int next_blockid;

//Functions:
string get_block_for_worker(unsigned int&);

#endif
